home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Handler / c / ModeChange < prev    next >
Text File  |  1995-07-08  |  640b  |  27 lines

  1. #include "Desklib:Wimp.h"
  2. #include "Desklib:Screen.h"
  3. #include "Desklib:Window.h"
  4. #include "DeskLib:Handler.h"
  5.  
  6.  
  7. extern BOOL Handler_ModeChange(event_pollblock *event, void *reference)
  8. {
  9.   wimp_point old_eig = screen_eig;
  10.  
  11.   UNUSED( reference);
  12.   UNUSED( event);
  13.   
  14.   Screen_CacheModeInfo();
  15.  
  16.   /*  If the screen resolution in pixels/inch has changed, then re-get all
  17.    *  of the outline fonts used in windows.
  18.    *  (This is necessary when changing between some screen resolutions, e.g.
  19.    *  mode 12 <-> 9, 12 <-> 20, etc)
  20.    */
  21.   if (old_eig.y != screen_eig.y || old_eig.x != screen_eig.x)
  22.     Window_ModeChange();
  23.  
  24.   return(FALSE);
  25. }
  26.  
  27.